package com.dji.swing.model;

import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.dji.bean.Compoment;

@Compoment("windowsListener")
public class WindowsListener implements ComponentListener, KeyListener, FocusListener {
	private final static Logger log = LoggerFactory.getLogger(WindowsListener.class);

	public void componentMoved(ComponentEvent e) {

	}

	public void componentShown(ComponentEvent e) {

	}

	public void componentHidden(ComponentEvent e) {

	}

	public void componentResized(ComponentEvent e) {

	}

	public void keyTyped(KeyEvent e) {
		log.debug("" + "" + e.getKeyCode());
	}

	public void keyPressed(KeyEvent e) {
		log.debug("" + e.getKeyCode());
	}

	public void keyReleased(KeyEvent e) {
		log.debug("" + e.getKeyCode());
	}

	public void focusGained(FocusEvent e) {
		log.debug("" + "focusGained");

	}

	public void focusLost(FocusEvent e) {
		log.debug("" + "focusLost");
	}

}
